package com.jinghong.registerlogin.service;

import com.jinghong.registerlogin.model.dto.UpdatePaperDTO;
import com.jinghong.registerlogin.model.pojo.PageBean;
import com.jinghong.registerlogin.model.pojo.Paper;
import com.jinghong.registerlogin.model.vo.PaperVO;

import java.time.LocalDateTime;

/**
 * ClassName:PapperService
 * Package:com.jinghong.registerlogin.service
 * Description:
 *
 * @Author: 寻月君子
 * @CreatTime:2024/5/22 15:21
 * Version:1.0
 */
public interface PaperService {
    void insert(Paper paper);

    PageBean list(Integer page, Integer pageSize,String subject, String topic, Integer userId, Integer status, LocalDateTime begin, LocalDateTime end);

    Paper get(Integer id);

    void updateStatus(Integer id, Integer status);

    void delete(Integer id);

    void update(Paper paper);

    void deleteQuestion(UpdatePaperDTO updatePaperDTO);

    PaperVO getIntirePaper(Integer id);

    void generateAndInsertPaper(Paper paper);
}
